package com.ruoyi.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.utils.file.MimeTypeUtils;
import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysFile对象", description="系统文件表")
public class SysFile extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "file_id", type = IdType.AUTO)
    private Long fileId;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "本地文件路径")
    private String filePath;

    @ApiModelProperty(value = "ftp 相对路径")
    private String fileFtppath;

    @ApiModelProperty(value = "访问url")
    private String fileUrl;

    @ApiModelProperty(value = "原始文件名")
    private String originFilename;

    @ApiModelProperty(value = "是否走ftp")
    private Boolean isftp;

    @TableField(exist = false)
    private String[] allowedExtension= MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION;
}